//
//  LoginForgetPasswordSuccessController.swift
//  GLUZSwift
//
//  Created by xyanl on 2025/3/7.
//  Copyright © 2025 考拉🐨. All rights reserved.
//
//  重置密码成功
import UIKit

class LoginForgetPasswordSuccessController: BaseViewController {

    @IBOutlet weak var titleLabel: UILabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        initNav()
    }

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        vhl_interactivePopEnable = false
    }
    
    override func viewDidDisappear(_ animated: Bool) {
        super.viewDidDisappear(animated)
        vhl_interactivePopEnable = true
    }
    
    // 更新语言
    override func updateLanguageAction() {
        titleLabel.text = "修改密码成功".localized(.login)
    }
}

// MARK: - private
private extension LoginForgetPasswordSuccessController {
    func initNav() {
        // 设置初始导航栏透明度
        vhl_navBarBackgroundAlpha = 0
        backItem.action = #selector(backRootAction)
        titleLabel.text = "修改密码成功".localized(.login)
        
    }
    
    @objc func backRootAction() {
        navigationController?.popToRootViewController(animated: true)
    }
}
